home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / GENERIC.E2 < prev    next >
Text File  |  1996-04-01  |  3KB  |  102 lines

  1. name Generic EDM
  2.  
  3. % 00
  4. ! 00
  5. O 4
  6. N >4
  7. G 2
  8. X ->3.>4
  9. Y ->3.>4
  10. I ->3.>4
  11. J ->3.>4
  12. F >3.2
  13. D 2
  14. M 2
  15.  
  16. ModalLetters X Y Z F R                # List of letters that are modal    
  17.  
  18. ModalGs 0 1 2 3                       # List of g codes that are modal    
  19.  
  20. Sequence#s N 0 1 1                    # Char, freq, incr & start          
  21. First#? N                             # Y or N  'Output 1st sequence no.  
  22. Last#? N                              # Y or N  'Output last sequence no. 
  23.  
  24. HCode X                               # X or X U  'Horizontal char.       
  25. VCode Y                               # Y or Y V  'Vertical char.         
  26. FeedCode F                            # Feed rate char.                   
  27.  
  28. Comment ( )                           # Begin End comment char.           
  29.  
  30. DComp 41 42 40                        # Left, Right & Cancel m codes      
  31. LComp 43 49                           # On & Off codes                    
  32.  
  33. Feed G1                             # Linear move                       
  34. Rapid G0                            # Rapid positioning word            
  35. Cw G2                               # Circular move clockwise           
  36. Ccw G3                              # Circular move counter clockwise   
  37.  
  38. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  39. Inch/MM 70 71                         # Inch & Metric g codes             
  40.  
  41. CtrCode I J                           # I J or R or I J K L               
  42. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  43. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  44.  
  45. Spaces? N                             # Y or N  'Spaces between words     
  46. Incremental? N                        # Y or N  'Inc or abs output        
  47.  
  48.   #Work G
  49.  
  50. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  51.  
  52.   #MaxRad 999 .0005                   # Chordal breakdown value
  53.   #ArcWithSame? N                     # Support XY/UV arc records
  54.   #ArcWithLine? N                     # Support UV arc records
  55.  
  56. StartCode                             # Start of the program              
  57. %0
  58. !0 O[Program#]
  59. End
  60.  
  61. 1stToolChange                         # First tool change                 
  62. G0 G92 X0 Y0
  63. X[H] Y[V]
  64. End
  65.  
  66. Infeed                                # Enable cutter comp                
  67. G[Side] X[H] Y[V] D[Dcomp]
  68. end
  69.  
  70. Outfeed                               # Disable cutter comp               
  71. G1 G40 X[H] Y[V]
  72. end
  73.  
  74. ToolChange                            # Secondary tool changes            
  75. M1
  76. G0 X[H] Y[V]
  77. End
  78.  
  79. EndCode                               # End of the program                
  80. M30
  81. %0
  82. End
  83.  
  84.   #LineCode
  85.   #G1 X[H] Y[V] F[Frate]
  86.   #End
  87.  
  88.   #RapidCode
  89.   #G0 X[H] Y[V]
  90.   #End
  91.  
  92.   #CcwCode
  93.   #G3 X[H] Y[V] I[Ival] J[Jval] F[Frate]
  94.   #End
  95.  
  96.   #CwCode
  97.   #G2 X[H] Y[V] I[Ival] J[Jval] F[Frate]
  98.   #End
  99.  
  100.   #Upon
  101.   #End
  102.